import request from '@/utils/request'

// 查询证件借还列表
export function listDocumentBorrowReturn(query) {
  return request({
    url: '/system/documentBorrowReturn/list',
    method: 'get',
    params: query
  })
}

// 查询证件借还详细
export function getDocumentBorrowReturn(id) {
  return request({
    url: '/system/documentBorrowReturn/' + id,
    method: 'get'
  })
}

// 新增证件借还
export function addDocumentBorrowReturn(data) {
  return request({
    url: '/system/documentBorrowReturn',
    method: 'post',
    data: data
  })
}

// 修改证件借还
export function updateDocumentBorrowReturn(data) {
  return request({
    url: '/system/documentBorrowReturn',
    method: 'put',
    data: data
  })
}

// 删除证件借还
export function delDocumentBorrowReturn(id) {
  return request({
    url: '/system/documentBorrowReturn/' + id,
    method: 'delete'
  })
}
